package com.aaa.dang.modules.statistics.controller;

import com.aaa.dang.common.util.ResultModel;
import com.aaa.dang.modules.statistics.service.IFlowrate;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author 刘旭泽
 * @version 1.0
 * @date 2018/12/27
 * @description
 */
@Controller
@RequestMapping("/statistics")
public class Flowrate {

    @Autowired
    IFlowrate service;
    /**
     *@description 跳转到人流统计页面
     *@return java.lang.String
     *@param
     *@author 刘旭泽
     *@date 2018/12/27
     **/
    @RequestMapping("/toflowrate")
    public String toStatis(){

        return "statistics/flowrate";

    }
    /**
     *@description 跳转到人流统计页面
     *@return java.lang.String
     *@param
     *@author 刘旭泽
     *@date 2018/12/27
     **/
    @RequestMapping("/toreflowrate")
    public String toStatiss(){

        return "statistics/reflowrate";

    }

    /**
     *@description 得到要展示学生入住人数统计信息
     *@return com.aaa.dang.common.util.ResultModel
     *@param
     *@author 刘旭泽
     *@date 2018/12/27
     **/
    @RequestMapping("/getFlowrate")
    @ResponseBody
    public ResultModel getFlowrate(@RequestParam Map<String,Object> map){

        ResultModel mod = service.getFlowrate(map);
        return mod;
    }
    /**
     *@description 得到要展示学生退宿人数统计信息
     *@return com.aaa.dang.common.util.ResultModel
     *@param
     *@author 刘旭泽
     *@date 2018/12/27
     **/
    @RequestMapping("/getreFlowrate")
    @ResponseBody
    public ResultModel getreFlowrate(@RequestParam Map<String,Object> map){
        ResultModel mod = service.getreFlowrate(map);
        return mod;
    }







}
